import { baseAjax } from "../utils/baseAjax";

// 商品列表
export const listGoods = (data, successHandle) => {
	return baseAjax({
		url: '/api/index/goods/list',
		type: 'post',
		data,
		success: successHandle
	})
}

export const getGoodsById = (id, successHandle) => {
	return baseAjax({
		url: '/api/goods/' + id,
		type: 'get',
		success: successHandle
	})
}
